package com.company.装饰模式;

public class Test {
    public static void test(Person person){
        person.work();
    }

    public static void main(String[] args) {
        Person person=new ReadDecorator(new SingDecorator(new Student()));
        test(person);
    }
}
